add getView method to Controller