Refactoring of SearchView.