Added persistence and json serialization of model
changed the way the page fragments are instantiated, now they have a reference to the model