overwriting the view.render method