display date chooser within a Popover on the iPad and within a modal window on the iPhone
fix headerBar is not defined on iOS
improved performance on iOS. open windows as early as possible to get a faster response to a user action