Changing frontend to request everything to API