implemented nav-bar onNavigate to change styling of menu