Adding automatic page refresh.