Updated frontend to take into account API changes

see 1cb47634525241bfb3eebc340f74a67585479b1c