Modal confirm

Switches from `window.confirm` to a custom modal confirm dialog. In prep for shell-ification.