reverted toggle switch changes