better to check if the notification origins in the frontend