WIP: Save new document and open document/edit.