added add event functionality