use $templateCache for view rendering