Added destroy function to button