added onclick events to the navigation