add pageName var to app controller
refactor navigation to output all app page links and add active classes on current page