changes to allow for ajax call for orders