make treeExplorer directive