Added updating of attachments after editing