fix the remove update logic so that when we remove nested input table items the table updates