Updated backend with api calls