Refactor AbstractHtmlView to work with RendererInterface