Switch to last tab after closing tab