refactored state into model and session where model is saved in localStorage and session isn't.