add navbar functionality