Added template to region
Added region & page templates
Refactored to generalise code when added code for regions and pages