updated routes.js