improve deduplication handling and saving in bulkeditor