debounce the search function