make remove button condition overridable