modified routes/pages.js