Dialog windows open conditionally

All of these are not defined here, anymore, but in the `dialogs.js` and not in this way, but in the dialogs' object.