added events to navigation buttons