modified conditional in navigation bar