How to modify the document status?