defined dynamic route and rendered an ejs view