refactoring: replace dynamically created attribute views