added orders, fixed api not receiving response from server