Added conditions for nav links