Dialog windows open conditionally

Pretty obvious.