refactoring gestion model et affichage