add edit event (for polygon)