Added error dialog class