set the auto refresh in the UI