Created a switch control