Added ejs layout functionality