fix view and model