update ajax handler