refactoring page