Add if statement to nav bar