update to tab close