refactor flash notice out of application, into partial