add onClick to dropdown menu links so that the menu will close when clicked.