main page renders with api data