Just to clarify ,when you released the switch from the mounting box, 2 red wires were loose. You then removed all other wires from their terminals. Is that all correct ?
If so ,did you label all the wires so you could put them back into their respective terminals ?
It would appear that you have...