setup error boundary to display custom error when an internal error happens instead of a white blank page