finish move of API requests to server-side. link up client-side with server-side api requests.