added in ajax submission failure fallback