keep the same tab when switching back to live doc

just a small change which prevents a new tab be open when switching back from a related doc to the HTML file being edited. it fixes functionality but also makes more usable for development. 
this PR doesn't address a new tab being open when switching to a different HTML doc.