Added console log for index of notification generated