update notification function