updated method signature of ajax results