changed template to ejs