old change for tab removal
major changes/refactor for event based local storage background.js only