refactoring page tools