refactor ajaxHandler service 5