added navbar functionality