auto-dismiss existing modal dialog before showing message box