adds switching time to control state
Adds before and after tags for controls.xml