ToggleButton functionality added