make the close tab button work for pm tabs