cleanup viewdatatable class, API logic did not belong into viewDataTable