refactoring of pages