This will get weird if you have multiple tabs open. Should probably be tied to the current URL