Changed how selected calendars are retrieved