add close button to tabs.
fix double-PART notification bug.