refactor: initialize view() in the base controller