changed the usage of the model slightly so the new json fetching method
can be used in MainActivity now.