change template tree