add dynamic pages and template