Added navbar functionality