Updated the frontend to use the recent backend API changes