Changed Switch to ToggleButton.