dialog events for refresh and terminate