added example update function to UI