added update and remove for attachments and comments