register base ajax and fixes ajax, serialize base