Properly update the results pane when closing tabs