some changes in app.js