refactor flash html in application layout

7.6 exercise #5