Collapse navbar when link is clicked