refactoring of the embedded search to a control searcher