better way to remove tabs