Making menu collapse when a link is clicked.