Updated method "getView". Now only a new view is created if controller returns an array.