change the way the url and title are loaded-from each tab accesing localstorage to localstorage accessed only once.