added flashes to layout