page refactoring