layout is ready
fix error pages