added collapsing of navigationbar on smaller screen sizes