added auto refresh to page