ajax problems fixed