put the routes in app.js in a more clean way