Edit document is working, edit document type