added new folder for ejs templates and changed the code accordingly