linked new index page with api call