updated to close off menu with nav change