refactor mvp to external

add link from edit document page