handle flash msgs