Making navbar collapse after click