add flash to layout