fixing error pages