add alert to show flash messages