fixed issue with cors, api call changes