Added Edit event functionality