Fix nav submenus closing when page reloads