added error layout for dev, prod redirects all errors to home