views refactoring