move routes to index.js