change 1000 ms to 5000 ms for refresh period