On my way to functional treeview