add destroy method to widget api (button not erased)