intelligent auto generate controller for new views, fixed nested view.js template