added toggle to state