add new route and refactor app.js file with seprating controller.js