added error handler and error view