- added debounce function for search