smart linking for nav bar