used API to load live data into home page