refactor SearchActivity. still wrong functionality