treeview controller implementation (WIP)