I'm learning gits
Added ontoggle method