added flash notice for sent message