added sample for ToggleSwitch