adds primary nav toggle logic