Add refresh setting by closing index first