added handlers for each type of search.