use model to pass data