adding flash message in the layout