refined dialog auto-dismiss and switched to Clock.event