add flash on events edit