fixing renderView in routes.js