added debounce to the search