refactor views document