send event before dom change