Updated CancelButton_Click to use a task CancelEditsAsync which returns after UpdateCompleted is raised.