the document is ready