ajax working for patients search