update notification logic