Added dialog boxes showing errors