updated orders controller