app will now check for window.flash and display it