update output class, refactor page template option