store variables to local storage