add conditionals to navbar