Refactoring some view