added events to the nav bar