Updating template model