add isAjax method