refactored  datatables example