added auto refresh setting