add api to update the Mag widget when reload the datasource