Changing format and button to ToggleButton