import template and refresh tree