Added a clickListener to Switch