started to handle flash messages