prototyped Edit Event function