Here’s my simplified version of that solution.
The rule just goes into a DSL script action in MainUI that triggers on the item changing.