adapted notifications to the w3c API