added error callback to view