making tree functional by add func. to search/display/autocomplete