added update handler to ajax request