Creating alert action to remove warnings