refacto serviceajax