Corrected some issues in messageUI