This changes the spinner element such that the another widget can preven...

...t the

submission of the form if need be.
Had to use a lambda to contain the variable ```id``` as when using the loop approach before the variable would be shared across the two closures.