added debounce to search