If you change which course is selected, this isn't respected in the new event dialogue.
This is because we:
- we register the new event button once, on initial page load; therefore
- we set the current course Id once, on initial page load
We need to either:
- move the instantiation to be within the wrapper; or
- make the setCourseId call lazy.