added callback functionality and tbody data attribute