The remove degree row button now properly removes the corresponding row