Update tree template