Now calling RefreshData() function correctly