Adding collapsed class to navbar