improve and add ajax fail try next ajax