update alert element.