implemented the collapse of the navbar when app is viewed on a small device and they click on a link