refactoring including not fetching the suggestions again unless the query has changed
delay fetching the suggestions until the user stops typing for some time