compiling treeview