template update and history