 			popover.contentViewController = dateRangePickerController
 			popover.delegate = self
 			popover.showRelativeToRect(self.bounds, ofView: self, preferredEdge: .MinY)
+			updateSegmentedControl()
 		case 2:
 			dateRange = dateRange.next()
 		default:

		
		let nextAllowed = dateRange.next().restrictToDates(minDate, maxDate).endDate != dateRange.endDate
		segmentedControl.setEnabled(nextAllowed, forSegment: 2)
	}
	
	// MARK: - ExpandedDateRangePickerControllerDelegate

	}
	
	// MARK: - NSPopoverDelegate
	public func popoverWillClose(notification: NSNotification) {
		guard let popover = notification.object as? NSPopover else { return }
		if popover.contentViewController === dateRangePickerController {
			dateRangePickerController = nil
			updateSegmentedControl()
		}
	}
}
