save loc into localstorage