added more ajax support