layout is cleaner and navBar functional