Edit event functionality