Write proper flash messages