Added "time window" initialization on page load