some refactoring in controller/Commande.js