Merged MainActivity and SearchActivity