renamed log to event + added event datatables func