handles notificationURL