create template and pages