wire up the update handler