fixing up ajax