added calender rendering; bug fixed