document page, editor page refactoring