Change attribute view to treeview