Added passing dialog to Alarm and Timer panels so that buttons can dispose of them.