Collapse navbar on button events