put if/else logic back into navbar