code cleanup, navctrl moved to application controller
template cache added