refactor page use ace