Made a service for simplyfying the creation of datatables and added attributes