cleaning up error pages