adding the auto refresh