refactoring
added example with datatables