added the close menu event to link in the menu