Minified the navbar when loading

- Add the code to minify the nav bar when the application loading.