Added code for tab id storage, related to eventually fixing #7