refactors showSearchResults to be part of appState