Added define pages to template
Added define pages to template