[BUGFIX] Do not open EditDocumentController in modal