added getView method to base controller