implement the next problem feature, getting the next id from the backend