connecting model with view