Move email preview popup into object. #1190