prevent added or removed documents from being lost on submit