changed errormessages not to statusbar