refactor send_notification from the comments
uncomment the callback