set up template page