Collapse navbar when user clicks on button.