seprate method create for ajaxSucces and cacheData