refactor ajaxHandler service 2