initial preparing for view.js