views refactoring step 1