update templates
update controller and js file