unblocked the UI on the switch by changing to .saveinbackground()