added local notification code