collapsed nav bar only works first time