Added more stuff to the create new document page.
Fixed the issue of non-standalone documents not getting fetched.
Fixed the issue of documents with empty file not getting created.