keep the same tab when switching back to live doc

prevent opening a new tab when switching back from a related
document to the HTML file being edited.
Merge pull request #15 from sebaslv/switch-doc

keep the same tab when switching back to live doc