beautify error pages.