adding flash messages