controller calling API