add a callback to update the ui