added more flash alert functionality.