Fixed the frontend to accommodate backend data changes