adding flash messages everywhere