Improved flash message formatting