added attachments to edit modal, also deletes old inserted attachments
resolving conflicts