remove a repeated case and the data-togle of the tab