update ajax sample