correctly handle notification actions