fixed the search engine. now works on key release not key pressed