added toggle switch