fixing error display in views