a few tweaks to ajax methods.