Add undoCloseTab function on tab bar middle click