adding flash messages functionality