added if/else statement for nav links