change ajax type