add notification_switch function