modified attachmentPanel to allow delete of attachment in composer view