add clear notification logic