Add generic to Treeview builder and adapter