Added dynamic resizing of the navbar