index.js, app.js and profile.js updated