added local helper to display flash messages