Use callbacks instead of ajaxSuccess