refactor page file classes