finally got the calendar working