Fix ordering of new results. And handle popups for leaving gmail.