use template for view