new document is ready