change template script