Alerts are displayed properly