Paramaterize only by mode, delete whitespace, rename getNavBarClass to navBarClass