edit event dom fix