Collaping navbar when item clicked