update flash messages system