created correct templates for ejs and rendering them