Updated email modal to use data.