using flash for the alert