setting entities in local storage