Dialog windows open conditionally

New selector. See further below.