first steps for refactoring pattern view