Added modal support for calendar.