update time range on input change