changes added by Wang Yi to delete rows from the main table