Fixed the close tab button visibility issue