added flash messaging