Refactor flash alert using content tag