refactoring views