add email and iMessage function