update error() to render error view