fixing search in main screen