added conditional navigation bar