update application sample