updated added event functionality