Added custom error pages and moved google analytics to the head