create pages and templates