Added molokai toggle hook
Compacted molokai toggle function and actaully made it work