update email behavior