Adding events for nav.