add destroy method

implement to destroy a button bar.