Urls are saved upon window closing using local storage