Converting views to ejs and implementing routes