Bring back most modals

Not all of the modals fully work yet, but at least they are all opening again.