fixing error in toggle, fixing spacing on some code