Fix #162: Restore previous tabs when open codebox