Fixed problem of the program closing after clicking the first button

- Modified the previous change to wrap EventLoop.isEnabled around each
windows execution loop.

- Acceptance tests work but do not complete. More work required for
this.