Update status when creating document