remove deprecated showDialog in EventCollector