add model and update view