migrate all the pages to ejs template