added search feature to tree structure