Dialog windows open conditionally

Dialog button clicks go straight to `dialog()`.