proper saving, updating, and deleting + sync with storage
effort to creat factory for local storage
working saving to local storage, saving rules, and updating scope