Removed unused code from ToggleControl file