add error pages with layout