refactor page process