What is best to do is take out the old box which is usually a fake box, you know the ones with the built in cover-switch with the cover that screws to the wall and there is not a real box behind it...if that is what you have. Replace them with a real plastic pop in box and convert to new switches. Usually the wire is not marked so be careful with the new wiring.