updated layout to show flashes