Update messagedialog (avoiding deprecation warnings)