updated so i can get the notification in JS