Change tree node content to generics