Updated navbar functionality