Update with the changes for userLeavingApplication