ajax type changes