update template for controller