serializing collection to LocalStorage, not fetching data from the server if we do not need to