moved more methods to view.prototype