Added sync behavior

fake for now using localStorage  instead of server data