update ajax and config