add tab removal listener