finish error pages