working on event functionality