table data gets refreshed