Closing navbar collapse when clicked on mobile