create a html table(with some useful events) from json data