added off state for the button
added switch widget