refactored ActiveDataProvider.