refactor all page