Ensure the UI is updated after editing a list