nested views and refactoring