changed the model to be page based