update complete temlplate