added code for live data update