ajax error handling changed