add function that reload data of table