added support for multiple calendars on the same page