Move the nav support functions to IndexController