figured out a way to manage localstorage across background and popup page