Dialog windows open conditionally

Same reason as above.