You don't need all this functionality to display the tree with indentation.