detect close tab is ready !!!!!!!!!!!!!!!!!!