views directory refactoring