fix model and view