updated index.js routes