moving routes from app to index.js