print error message on the UI