navbar template url code review
main controller now checking $location path changes to update selected menu item