added logic to send order to server