ajax troubles fixed