clean code
changed to json, order history response