Code cleanup for ComposeMail and it resizes