Fix bug where search bar is not focused after close button is clicked
Delay searching while typing