rewrite the ajax to debug the parameters.