Changing ref dataSource to dataProvider.