converting tuple response to dict
setup form for getting results from the API