Updated the index.html to verify the data fetching. View handling incorporated