initialize Pages, types and render output.