Update frontend to support new backend structure