adapting frontend to new backend api