use timeout to refresh page