Refactor ViewRenderer and use it in ControlerBase too