updated store logic to get and set models and collection