refactored data table and introduced data provider