combining model with view