Removes SearchActivity and replaces function with custom dialog