pinning a tab switches to right tab now