Refactoring view create