refactoring de sales a tab