handle search.