adding the update handler