first trial ajaxlistener to make tree working