updated apps to use the mail component.