adds flash messages from template partials