working on tree view