added update function for when order has been added