turn off flash for dom changed events