Added listeners for navigation menu buttons.