updated app.js w routing and settings