added error messages with dialogbuilder