Refactor tree_display_controller