make the data visible on the table by adding reloading function