adds flashes to layout