made first api query and created controllers