flash messaging in layout