ajax deteting doctor problems