add click event for menu links to hide menu when menu item clicked.