added error message to view