lots of fix on view.js, controller and import.