added event listeners to the nav list items