started to use es6 in view.jsx