Trying to simplify to show issue of shown dialog not receiving events.