Adds logic for app remove and add