Setting fallback and xhr