Revised method for unsubscribing from notifications