update flash messages helpers