update alert directive