fix routes and view engine