Refactoring da view (move method para model)