improving ajaxFormLoop