add flash alert helper and extension