refactor ajaxHandler service 3