refactor error widget, moved exception, fatal, notFound to error widget