add treestyle and treeindex