added auto refresh