Rearranging tabs and closing first closes first two tabs