updated the templates and views