update template and views