changes in ProfileCtrl.js