Deleting data from table and table getting refreshed