update controller and template