Added code for Custom Flash Alerts