changes data list to table