How to open new documents and existing documents