updating the data in cells of table