displays api data in new view