sleep(0.5) in refresh page method