handling multiple flash messages