Frontend changes to call api