created a custom debounced function for the search form instead of using throttle

Now it works better!