Add flash messages to UI