correct $view instance used and use correct method for adding error message