add message box

add message box for warning and error indications