and little bit more cleaning of view.js