creating main index page with fillup data from api