Tree View: UI, generic display function, add functionality