made sure the email only gets sent the first time the status changes