add object to local storage