Connected frontend to back end API