Formatting for tree view.