Use dialog box for showing error message.