flash messenger view helper refactored