Fix directories display
Support the search feature in the tree view