add tree-explorer directive