work on erDetail.ctrl.js