made error dialog more user friendly