Fix bug where switching tab mixes up or forgets the links to be shown in the popup.
Merge pull request #2 from jonls/master

Fix bug where switching tab mixes up or forgets the links to be shown in the popup.