adding listener to notification