refacto compte controller