Updated orders controller