template and view update