refactor de controller gastos