Support for flash messages in layout