Making the nav buttons collapse correctly