added code to send notifications
added unsubscribe