First working version with datatables