corrected order of arguments
changed from ajax search to normal search