support for calendar in layout