add better flash messages with timeout