Update sample app code