change models local in view ,
fix compilation error in fields.js