handle notification to activity