added notification event functionality.