Correct Firebase update logic when removing widgets