Refactoring nested views and nested controllers