Made the calendar dynamic