Add toggleNavState function for DRYness