Make alerts and destroy action more universal