removing redundant toggler code