added checkboxes for attachments