Connect view and error handler