Updated code for alerts display.