small refactorings to searchView