Dialog windows open conditionally

@winhamwr pass the current test here.