render the data from the api