Save params in localstorage and retreive them