changed warning to alert class not style