define ProfileCtrl to handle profile settings