I only just installed a switch and it trips the circuit when i turn the switch stale.? ...


Answers:    I love the answers from people who know nearly as much about electricity as you seem to be to. The blind leading the blind. Sometimes those short circuits transpire when people do their own electric wiring. Lucky we have circuit breakers to trip to keep hold of the house from burning down.

You didn't provide enough information for anyone to amount out what you are doing wrong. And guessing is not what people should be doing beside electricity. Have you considered having an electrician do your electric wiring? You really should.
If it is a three way, you hold the wires wrong.