Claiming, freeing by ajax