add default error handler to controller