Here is a changed version of your app. I removed ...
# tornadofx
e
Here is a changed version of your app. I removed all the code that didn't make any sense to me, and updated to idomatic syntax, changed SubView to a Fragment, since it's used multiple times, and open the modal the correct way: