testing the auto refresh data function