corrected flash message styles and routing