Now, when a new document is created, it is added to the list and open