add alert active state