more ajax fixes