fix middle-clicking back/forw buttons modifying history in current tab