added isAjax on delete