Debounce SearchBar change callback
Reformat code a bit