update ajax implementation