add a close button to each tab