Hiding nav bar logic added for views that don't want the navbar.