added auto page refresh