Moved toggle specific code into a toggle partial