changes made by Wang Yi to fix deleting rows at the main table