layout loading fix for 404 page