template file update