[#52] added helper for flash messages and used it in layout