fixed flash messages with animation