Convert the cud json call to ajax and add a timeout