Should handle the problem of flash messages persisting between tab loads.