update new function for order controller