add error view
bugfix from rework