Once the connections are secure, I like to wrap the switch with electrical tape as an added safety measure. This eliminates the switch from coming into contact with the side of the box. Now, press the switch into the box for a test fit. You may have to adjust the wires in the box to make everything fit. Tighten the two screws into the box, keeping it as plumb as can be. Replace the switch cover and tighten its two screws. There, you have done it!