Removed some extra code that was preventing the toggling from working.