set CSS class for alerts